/**
 * 生成随机颜色
 * @param {*} opacity 透明度
 * @returns 颜色值
 */
export const randomColor = (opacity = 1) => {
  const r = Math.floor(Math.random() * 256)
  const g = Math.floor(Math.random() * 256)
  const b = Math.floor(Math.random() * 256)
  return `rgba(${r}, ${g}, ${b}, ${opacity})`
}
